﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL
{
	public class MyAdminPage : System.Web.UI.Page
	{
		protected Controls clsControl;
		protected int nUserID = 0;
		protected int nDepartmentID = 0;

		public MyAdminPage()
		{
			clsControl = new Controls(Page);
		}

		protected override void OnInit(EventArgs e)
		{
			if (Session["UserID"] != null)
			{
				nUserID = Convert.ToInt32(Session["UserID"]);
				nDepartmentID = Convert.ToInt32(Session["DepartmentID"]);
			}
			else
			{
				Response.Write("<script language=JavaScript>;parent.parent.location.href='login.aspx';</script>");
			}

			base.OnInit(e);
		}
	}
}
